package com.redwine.app.utils;

import android.text.TextUtils;
import com.google.gson.Gson;
import com.redwine.app.net.model.User;

/**
 * Created by tian on 15/4/18:下午1:31.
 */
public class Global{

    public static int screenWidth;

    public static int preferredImageHeight;

    public static int preferredImageHeight2;

    public static String DeviceUniqueID;

    public static String platform;

    public static String version;

    public static User user;


    public static int screen_w;

    public static int screen_h;



    public static void setUser(String profile) {
        if (TextUtils.isEmpty(profile)) {
            user = null;
        } else {
            LogUtil.e("params","profile"+profile.toString());
            user = new Gson().fromJson(profile, User.class);
//           v
        }
    }







}
